package com.feng.financial.common.exception;

/**
 * @author Lee
 */
public class ValidationException extends RuntimeException {

    private String errorCode;

    public ValidationException(String errorCode) {
        super();
        this.errorCode = errorCode;
    }

    public ValidationException(String errorCode,String message) {
        super(message);
        this.errorCode = errorCode;
    }

    public ValidationException(String errorCode,String message, Throwable cause) {
        super(message, cause);
        this.errorCode = errorCode;
    }

    public String getErrorCode() {
        return errorCode;
    }
}
